<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-body">
                <form action="" class="form-horizontal row-fluid"  data-validate="parsley" id="validate-form">
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >姓名/手机/卡种/卡号:</label>
                    		<div class="col-sm-8">
                    			<input type="text"  disabled class="form-control" value="{$member.name}/{$member.mobile}/{$order.gym_card_name}/{$order.card_no}"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >有效期开始:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="start_date" id="start_date" disabled value="{$order.start_date}"  class="form-control datepicker" required="required" />
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >有效期结束:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="end_date"  data-old="{$order.end_date}"  id="end_date" data-bigto="#start_date"  value="{$order.end_date}"  class="form-control datepicker" required="required" />
                    		</div>
                   		 </div>
                	</div>
                	
                	{in name="order.gym_card_type" value="2,4"}
						<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >剩余天数:</label>
                    		<div class="col-sm-8">
                    			<input type="text" id="able_day" data-min="1" data-old="{$able_day}" name="able_day" data-type="digits" value="{$able_day}"  class="form-control" required="required" />
                    		</div>
                   		 </div>
                		</div>
					{/in}
                	
					{eq name="order.gym_card_type" value="1"}
						<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >剩余次数:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="able_count" data-min="1" data-type="digits" value="{$order.able_count}"  class="form-control" required="required" />
                    		</div>
                   		 </div>
                		</div>
					{/eq}
					
					{eq name="order.gym_card_type" value="3"}
						<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >剩余金额:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="able_money" data-type="money" value="{$order.able_money}"  class="form-control" required="required" />
                    		</div>
                   		 </div>
                		</div>
					{/eq}
					
					<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >支付金额:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="pay_money" data-type="money" data-min="0.01" value="0"  class="form-control" required="required" />
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >支付方式:</label>
                    		<div class="col-sm-8">
                    			<?php $pay_types=config("pay_type");  ?>
                    			<select name="pay_type"  class="form-control" >
                    				{foreach name="pay_types" item="v"}
										<option value="{$v}">{$v}</option>
									{/foreach}
                    			</select>	
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="form-group p-b-xxs">
                		<label class="col-sm-3 control-label"  >归属会籍:</label>
                		<div class="col-sm-8">
		                    <select class="select2-single" disabled="disabled"  style="width: 100%;">
		                      {foreach name="employees" item="v"}
		                      		<option value="{$v.id}" {eq name="v.id" value="$order.member_ship_id"}selected{/eq} >{$v.name}</option>
		                      {/foreach}
							</select>
						</div>
					</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >签约时间:</label>
                    		<div class="col-sm-8">
                    			<input type="text" name="order_date" value="<?php echo date('Y-m-d') ?>"    class="form-control datepicker"  />
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		<!-- parsley.min.js -->
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >描述:</label>
                    		<div class="col-sm-8">
                    			<textarea  placeholder="描述" rows="3"   class="form-control" name="descs" id="descs"></textarea>
                    		</div>
                   		 </div>
                	</div>
                	<input type="hidden" name="order_id" value="{$order.id}" />
                	<input type="hidden" name="gym_card_type" value="{$order.gym_card_type}" />
                	<input type="hidden" name="member_ship_id" value="{$order.member_ship_id}" />
                    </form>
                </div>
                
                <div class="panel-footer">
	                <div class="row">
	                    <div class="col-sm-6 col-sm-offset-3">
	                        <div class="btn-toolbar">
	                            <div class="row">
			                		 <div class="form-group">
			                    		<div class="col-sm-3">
			                    			 <div class="btn-primary btn" id="form-submit">提交</div>
			                    		</div>
			                    		<div class="col-sm-3">
			                    			 <div class="btn-default btn" data-dismiss="modal">关闭</div>
			                    		</div>
			                   		 </div>
	                			</div>
	                        </div>
	                    </div>
	                </div>
            	</div>
                
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.GYM_VIEW_JS}gym_member/member_up.js'></script>